package org.csu.newpetstoreback.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;

@Data
@TableName("orders")
public class Order {

    @TableId(value = "orderid", type = IdType.INPUT)
    private int orderId;

    @TableField(value = "userid")
    private String username;

    @TableField(value = "realname")
    private String realname;

    @TableField(value = "orderdate")
    private String orderDate;//下单时间，如：2021-11-04 11:42:02

    @TableField(value = "orderstatus")
    private String orderStatus;//订单状态：YF(已发货), NF(未发货), YS(已收货), YT(已退货)

    @TableField(value = "shipcountry")
    private String shipCountry;

    @TableField(value = "shipcity")
    private String shipCity;

    private String address;

    private String courier;

    @TableField(value = "totalprice")
    private BigDecimal totalPrice;

    @TableField(value = "paytype")
    private String payType;
}
